﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public abstract class BaseNodeHandler : INodeHandler<BehaviorEntity>
{
    public abstract BehaviorNodeState ExcuteNode(BehaviorEntity entity, NodeData node);

    public abstract void ResetNode(NodeData node);

    public INodeHandler<BehaviorEntity> GetChildNodeHandler(int nodeType)
    {
        return BehaviorSystem.NodeHandlers[nodeType];
    }
}